<aside class="main-sidebar">

    <section class="sidebar">

        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="<?= $directoryAsset ?>/img/avatar5.png" class="img-circle" alt="User Image"/>
            </div>
            <div class="pull-left info">
                <p><?=\Yii::$app->user->identity->username?></p>

                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>

        <!-- search form -->
<!--        <form action="#" method="get" class="sidebar-form">-->
<!--            <div class="input-group">-->
<!--                <input type="text" name="q" class="form-control" placeholder="Search..."/>-->
<!--              <span class="input-group-btn">-->
<!--                <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i>-->
<!--                </button>-->
<!--              </span>-->
<!--            </div>-->
<!--        </form>-->
        <!-- /.search form -->

        <?php
            $auth_items = Yii::$app->getModule('admin/auth')->getMenus();
            unset($auth_items['user']);
        ?>

        <?= dmstr\widgets\Menu::widget(
            [
                'options' => ['class' => 'sidebar-menu'],
                'items' => [
//                    ['label' => 'Menu Yii2', 'options' => ['class' => 'header']],
//                    ['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']],
//                    ['label' => 'Debug', 'icon' => 'dashboard', 'url' => ['/debug']],
                    [
                        'label' => '用户管理', 'icon' => 'users', 'url' => '#',
                        'items' => [
                            ['label' => '用户管理', 'icon' => 'circle-o', 'url' => ['/admin/user-admin/index']],
                        ]
                    ],
                    [
                        'label' => 'Client管理', 'icon' => 'users', 'url' => '#',
                        'items' => [
                            ['label' => 'Client', 'icon' => 'circle-o', 'url' => ['/admin/client/index']],
                            ['label' => 'ClientPulish', 'icon' => 'circle-o', 'url' => ['/admin/client-publish/index']],
                        ]
                    ],
                    [
                        'label' => '权限管理',
                        'icon' => 'fa fa-dashboard',
                        'url' => '#',
                        'items' => $auth_items,
//                        'items' => mdm\admin\components\MenuHelper::getAssignedMenu(Yii::$app->user->id)
                    ],
                ],
            ]
        ) ?>

    </section>

</aside>
